package com.zczy.config;

import java.io.File;

public class c {
    public static void main(String[] args) {
        File file = new File("");
        File[] files = file.listFiles();
        int num  = 0;
        for (File f : files) {
            if (f.getName().endsWith(".txt")){
                num++;
            }
        }
        System.out.println(num);
    }

}
